﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyNganHangDe.GUI
{
    public partial class FormBase : Form
    {
        #region Thuộc tính
        protected bool m_LockUpdate = false;
        public void LockUpdate()
        {
            m_LockUpdate = true;
        }

        public void UnlockUpdate()
        {
            m_LockUpdate = false;
        } 
        #endregion


        public FormBase()
        {
            InitializeComponent();
        }

        private void FormBase_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)27)
                this.Close();
        }
    }
}
